from django.conf import settings
from django.contrib.auth.models import AbstractUser, Group
from django.db import models


# 为以后可能要修改 auth user model 预留空间，不要删
class User(AbstractUser):
    pass


class Profile(models.Model):
    chinese_name = models.CharField(max_length=255, null=True)
    user = models.OneToOneField(
        settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="profile"
    )

class GroupExtraInfo(models.Model):
    group = models.OneToOneField(Group, on_delete=models.CASCADE, related_name="extra_info")
    code_name = models.CharField(max_length=255, null=True, blank=True)
